import { INCREMENT, DECREMENT } from "../constants/countConst";
import store from "../store";
export const incrementAction = (data) => {
    return {
        type: INCREMENT,
        data
    }
}
export const decrementAction = (data) => {
    return {
        type: DECREMENT,
        data
    }
}
export const ifOddIncrementAction = (data) => {
    return {
        type: INCREMENT,
        data
    }
}
export const waitIncrementAction = (data) => {
    return () => {
        setTimeout(() => {
            store.dispatch({
                type: INCREMENT,
                data
            })
        }, 2000)

    }
}